import QtQuick 2.7
import QtQuick.Layouts 1.3
import Quick.UIComponent.Text.Normal  0.1
import Quick.UIComponent.BorderRect 0.1
import Quick.SystemComponent.FontLoader 0.1


MBorderRect{
    id:root
    implicitHeight: 50
    implicitWidth:  140
    property bool isTitile:false
    borderColor:isTitile?"green":"#00000000"
    property alias text: name.text


    MText{
        id:name
        pxSize:isTitile?28:24
        anchors.centerIn: parent
        textColor: isTitile?"#00FFFF":"#C0C0C0"
        bold:isTitile
        fontFamily: isTitile ? Family.normal.name : Family.normal.name
    }
}
